Shrink ast::Expr64#158720
Conversation
|
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment was marked as outdated.
This comment was marked as outdated.
This comment has been minimized.
This comment has been minimized.
|
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
From 72 bytes to 64 bytes, by boxing `ForLoop`, which is the biggest variant. There are now 11 `ExprKind` variants that are 31 bytes, so future improvements here will be very difficult.
This comment has been minimized.
This comment has been minimized.
|
Finished benchmarking commit (fe91f04): comparison URL. Overall result: ❌✅ regressions and improvements - please read:Benchmarking means the PR may be perf-sensitive. It's automatically marked not fit for rolling up. Overriding is possible but disadvised: it risks changing compiler perf. Next, please: If you can, justify the regressions found in this try perf run in writing along with @bors rollup=never Instruction countOur most reliable metric. Used to determine the overall result above. However, even this metric can be noisy.
Max RSS (memory usage)Results (primary 0.6%, secondary 1.2%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (primary -2.0%, secondary -4.7%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Binary sizeThis perf run didn't have relevant results for this metric. Bootstrap: 488.088s -> 489.645s (0.32%) |
|
Perf results are positive but require some explanation.
Not sure why the icounts are worse, but as usual, when wall-time (and to a lesser extent, cycles) gives a clear signal, it's more trustworthy than icounts. And conceptually it makes sense that shrinking an extremely hot type from 72 byte to 64 bytes (now fits in a cache line!) is good news, especially when it only requires a slight pessimization of the relatively rare @rustbot label: +perf-regression-triaged |
|
r? @folkertdev |
|
cc @rust-lang/rustfmt The parser was modified, potentially altering the grammar of (stable) Rust cc @fmease
cc @rust-lang/clippy |
|
r? @oli-obk rustbot has assigned @oli-obk. Use Why was this reviewer chosen?The reviewer was selected based on:
|
View all comments
From 72 bytes to 64 bytes, by boxing
ForLoop, which is the biggestvariant.
There are now 11
ExprKindvariants that are 31 bytes, so futureimprovements here will be very difficult.